package com.zhoust.fastdome.business.controller.scan;

import com.zhoust.fastdome.business.dao.UserMapper;
import com.zhoust.fastdome.business.service.UserService;
import com.zhoust.fastdome.common.CommonResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoust
 */
@Slf4j
@RestController
public class UserTestScannerPackageController {

    private final UserService userService;
    public UserTestScannerPackageController(UserService userService) {
        this.userService = userService;
    }

    @GetMapping("/getUserByScannerPackage")
    public CommonResponse getUserByScannerPackage(String id){
        String userById = userService.getUserById(id);
        return CommonResponse.succeed(userById);

    }

}
